package com.top10.service.impl;

import com.top10.entity.SpecialPrice;
import com.top10.mapper.SpecialPriceMapper;
import com.top10.service.ISpecialPriceService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author su
 * @since 2018-09-29
 */
@Service
public class SpecialPriceServiceImpl extends ServiceImpl<SpecialPriceMapper, SpecialPrice> implements ISpecialPriceService {

    @Autowired
    private SpecialPriceMapper specialPriceMapper;

    @Override
    public List<Map<String, Object>> selectGoodsByType(Long type) {
        return specialPriceMapper.selectGoodsByType(type);
    }

    @Override
    public List<Map<String, Object>> selectGoodsBysort(Long type) {
        return specialPriceMapper.selectGoodsBysort(type);
    }

    @Override
    public List<Map<String, Object>> selectGoodsBysortasc(Long type) {
        return specialPriceMapper.selectGoodsBysortasc(type);
    }

    @Override
    public List<Map<String, Object>> selectGoodsByprice(Long type) {
        return specialPriceMapper.selectGoodsByprice(type);
    }

    @Override
    public List<Map<String, Object>> selectGoodsBypriceasc(Long type) {
        return specialPriceMapper.selectGoodsBypriceasc(type);
    }

    @Override
    public List<Map<String, Object>> selectGoodsByexpress(Long type) {
        return specialPriceMapper.selectGoodsByexpress(type);
    }
    @Override
    public Integer deletedSpecial(SpecialPrice specialPrice){
        return specialPriceMapper.deletedSpecial(specialPrice);
    }
    @Override
    public Integer deletedShenGou(String goodsUuid){
        return specialPriceMapper.deletedShenGou(goodsUuid);
    }
}
